package cn.zhukelili.optimization;

import cn.zhukelili.base.IUserInfo;
import cn.zhukelili.expand.IOuterUserBaseInfo;

/**
 * @Description: 场景类
 * @Auther: hongheshou
 * @Date: 2018/7/19 17:07
 */
public class Client {
    public static void main(String[] args) {
        //外系统的人员信息
        IOuterUserBaseInfo baseInfo = new OuterUserBaseInfo();
        IOuterUserHomeInfo homeInfo = new OuterUserHomeInfo();
        IOuterUserOfficeInfo officeInfo = new OuterUserOfficeInfo();
        //传递三个对象
        IUserInfo youngGirl = new OuterUserInfo(baseInfo, homeInfo, officeInfo);
        //从数据库中查到101个
        for (int i = 0; i < 101; i++) {
            youngGirl.getMobileNumber();
        }
    }
}
